feat: Add DashScope provider support for Qwen3 models #441
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Pull Request Template
1. Related Issue
Closes #429
2. Type of Change (select one)
Type of Change: New Feature
3. Description
Changes Made:
This PR adds complete support for DashScope (Alibaba Cloud Qwen3 models) provider integration, including both backend and frontend components.
Backend Changes:
DashScopeProviderclass inpython/valuecell/adapters/models/factory.pythat implements OpenAI-compatible API interfaceModelFactory._providersregistrydashscope.yamlconfiguration file with Qwen3 model definitions (qwen-max, qwen-plus, qwen-turbo, qwen-7b-chat, qwen-14b-chat)config.yamlto register DashScope providermodels.pyrouter pointing to Alibaba Cloud Bailian console__init__.pyFrontend Changes:
constants/icons.tsassets/png/index.tsfrontend/src/assets/png/model-providers/dashscope.pngConfiguration Updates:
.env.examplewithDASHSCOPE_API_KEYenvironment variableCONFIGURATION_GUIDE.mdwith DashScope setup instructions and examplesWhy This Change is Necessary:
DashScope provides access to Qwen3 series models which are optimized for Chinese language tasks and offer competitive performance. Adding DashScope support:
API Endpoints:
https://dashscope.aliyuncs.com/compatible-mode/v1https://bailian.console.aliyun.com/#/home4. Testing
I have tested this locally.
I have updated or added relevant tests.
5. Checklist
I have read the Code of Conduct
I have followed the Contributing Guidelines
My changes follow the project's coding style